import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class BlackBg extends StatelessWidget {
  final Widget? child;

  BlackBg({this.child});

  @override
  Widget build(BuildContext ctx) {
    return Container(
      width: Get.width,
      height: Get.height,
      decoration: BoxDecoration(
        gradient: RadialGradient(
          center: Alignment(0.4, -0.6),
          radius: 0.6,
          colors: <Color>[
            Color(0xFF2D2D2D),
            Color(0xFF1D1D1D),
            Color(0xFF000000)
          ],
          stops: [0.0, 0.2, 0.8],
        ),
      ),
      child: child,
    );
  }
}
